home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / BBS / EZY120_1.ZIP / STRUCT.ARJ / CLIB.ARJ / STR3.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-09  |  178 b   |  14 lines

  1.  
  2. #include <string.h>
  3.  
  4. char *TrimLead(char *S)
  5. {
  6.   char *T = S;
  7.   while (*T && ((*T == ' ') || (*T == 0x08)))
  8.     T++;
  9.   if (T != S)
  10.     strcpy(S,T);
  11.   return(S);
  12. }
  13.  
  14.